package com.third.bank.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 余额表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Balance {
//    ID
    private Long id;

//    用户ID
    @TableField("user_id")
    private Long userId;

//    账户余额
    private BigDecimal balance;

//    更新时间
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime updateTime;
}
